home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / GCC 1.37.1r14 / usr / gcc-1.37.1r14 / object oriented files / GNUEditDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-10  |  822 b   |  39 lines  |  [TEXT/KAHL]

  1. /****
  2.  * GNUEditDoc.h
  3.  *
  4.  *    Document class for a tiny editor.
  5.  *
  6.  ****/
  7.  
  8. #define    _H_GNUEditDoc            /* Include this file only once */
  9. #include <CDocument.h>
  10. #include <CApplication.h>  
  11. #include <CTask.h>
  12.  
  13. #define MENUfilter 13
  14. #define MENUconfig 14
  15. #define cmdCPP 10000
  16. #define cmdCC1 10001
  17. #define cmdAS  10002
  18. #define cmdCC1MPW 10011
  19.  
  20. struct GNUEditDoc : CDocument {
  21.  
  22.                                     /** Construction/Destruction **/
  23.                                         
  24.     void        IGNUEditDoc(CApplication *aSupervisor, Boolean printable);
  25.  
  26.     void        NewFile(void);
  27.     void        NewFilefromHandle(Handle theData);
  28.     void        OpenFile(SFReply *macSFReply);
  29.     
  30.                                     /** Filing **/
  31.     Boolean        DoSave(void);
  32.     Boolean        DoSaveAs(SFReply *macSFReply);
  33.     void        DoCommand(long theCommand);
  34.     void        Notify(CTask        *theTask);
  35.     
  36. private:
  37.     Boolean        non_static;
  38.  
  39. };